<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
<!-- 这里引入导航信息header.tpl -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title name="titleName">产品费用与收益信息新增</title>
<style type="text/css">
.panel-input {
	width: 70%;
	float: left;
	margin: 0px 10px;
}

.float-left {
	float: left;
}
</style>
<script type="text/javascript">
	var treFeeDetailPath = '<%=context%>' +'business/treFeeDetail/';
	var treFeeTypePath = '<%=context%>' +'business/treFeeType/';
	//默认加载
	$(function(){
		//把访问路径传到js
		setPathPrefix(treFeeDetailPath,treFeeTypePath);
		window.treFeeDetail = new TRE_FEE_DETAIL();
	});
</script>
<script type="text/javascript" src="<%=context%>resources/modules/business/product/treFeeDetailDelete.js?r=<%=Math.random()%>"></script>
</head>

<body class="sub-page">

	<jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
		<jsp:param name="currentActive" value="" />
	</jsp:include>

	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;招商财富产品线</p>
		<p class="current">&gt;全部产品</p>
		<p class="current">
			&gt;<span name="titleName">删除费率</span>
		</p>
	</div>
	<div class="container">
		<div class="page-content">
			<!-- 产品费用与收益信息新建模态窗 -->
			<form id="treFeeDetailDeleteForm" name="treFeeDetailDeleteForm" role="form" class="form-horizontal" method="post" action="">
				<!-- 如果将表单禁用，就给fieldset添加disabled属性 -->
				<fieldset>
					<div class="page-content">
						<div class="model">
							<div class="model-head">
								<span class="head-boder-left"></span>
								<h2>产品费用与收益信息</h2>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">产品简称<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<select class="form-control use-select2" placeholder="产品简称" id="subPrdCode" name="subPrdCode"></select>
								</div>
							</div>
						</div>

						<div class="model form-item-group">
							<div class="model-head">
								<span class="head-boder-left"></span>
								<h2>自定义添加费用或收益</h2>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">费用或收益<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<div class="sub-sel-cont fl" style="padding-top: 8px;">
										<label class="fl">
											<div class="iradio_square-green" name="fee_type" value="fee" onclick="treFeeDetail.chooseFeeType(this);">
												<ins class="iCheck-helper"></ins>
											</div>费用
										</label> 
										<label class="fl">
											<div class="iradio_square-green" name="fee_type" value="yield" onclick="treFeeDetail.chooseFeeType(this);">
												<ins class="iCheck-helper"></ins>
											</div>收益
										</label>
									</div>
								</div>
							</div>
							<input type="hidden" id="feeType" name="feeType">

							<div class="form-group" id="customType" style="display: none;">

								<label class="col-sm-2 control-label" name="customTypeTitle">费用/收益类型<span class="text-danger">*</span></label>

								<div class="col-sm-10 form-inner" name='custom_fee'>
									<select onchange="treFeeDetail.customAddFee()" class='form-control' placeholder="费用类型" id="feeCode" name="feeCode">
										<option value=""></option>
									</select>
								</div>

								<div class="col-sm-10 form-inner" name='custom_yield'>
									<input class="form-control" placeholder="客户收益" value="客户收益" readonly="readonly">
								</div>
							</div>
						</div>

						<div class="page-footer">
							<button type="button" class="btn btn-primary btn-save btn-loading btn-w-xs" id="commitBtn" name="commitBtn" data-loading-text="<i class='ico-loading'></i>" onclick="treFeeDetail.addTreFeeDetail();">删除</button>
							<button type="button" class="btn btn-link btn-w-xs" id="cancelBtn" name="cancelBtn" onclick="window.close();">取消</button>
						</div>
					</div>
				</fieldset>
			</form>
		</div>
	</div>
</body>